home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!marketgraph!rvg
- From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: MatchFirst->Lock->Examine->ExAll = Enforcer (Help! :)
- Message-ID: <0636nbj60.alamito@marketgraph.xs4all.nl>
- Date: Mon, 5 Feb 96 13:54:06 CET
- References: <4ej668$f7u@ra.nrl.navy.mil>
- Reply-To: rvg@marketgraph.xs4all.nl
- X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
-
- In <4ej668$f7u@ra.nrl.navy.mil> dyer@alx.sticomet.com (Doug Dyer) wrote:
-
- >Hi folks,
- >
- >I am trying to write a program that will, given an amigados
- >pattern, recursively descend directories and perform some
- >action on each file.
- >
- >Im having a problem with an enforcer hit in ExAll() and Im
- >not sure why, so I thought Id post here with a synopsis
- >of the algorithm in case Im doing something "amiga-illegal".
- >
-
- >... main .......
- >main()
- >if (MatchFirst()) {
- > do {
- > handlePath(pathname)
- > } while (MatchNext())
- >
- >.... handlePath ...
- >
- >handlePath(pathname)
- > lock (path, ACCESS_WRITE)
- >
- > Examine (path)
- > if (path is a directory)
- > EnterDirectory(lock, pathname);
- > else (do specific file thingie)
- >
- > unlock(path)
- >
- >.... enterDirectory ....
- >
- >
- > get the dos object,
- > use allocmem for alignment
- > ExAll
- > for each ExAllEntry, handlePath
- >
-
- The actual code could be more enlightening, since pseudo-code can only bug in
- conceptual terms.
-
- --
- Ruud van Gaal
- MarketGraph Visual Automation
- E-Mail : rvg@marketgraph.xs4all.nl
- DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- "...Works fascinates me. I could sit and watch it for hours..."
-
-